package com.yzf.wisecoder.wisecoderservice.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yzf.wisecoder.wisecoderservice.service.ViewDatasourcePublishService;
import com.yzf.wisecoder.wisecoderstorage.mysql.dao.ViewDatasourcePublishDao;
import com.yzf.wisecoder.wisecoderstorage.mysql.entity.ViewDatasourcePublishEntity;
import org.springframework.stereotype.Service;


/**
 * @author jianghuiyong
 * @email jianghuiyong@yunzhangfang.com
 * @date 2020-05-15 18:12:27
 */
@Service("viewDatasourcePublishService")
public class ViewDatasourcePublishServiceImpl extends ServiceImpl<ViewDatasourcePublishDao, ViewDatasourcePublishEntity> implements ViewDatasourcePublishService {


    @Override
    public boolean removeByViewId(Long viewId) {
        return remove(new QueryWrapper<ViewDatasourcePublishEntity>().eq("view_id", viewId));
    }
}